//
//  LBFullVideoViewController.m
//  LbAdDemo
//
//  Created by SX on 2021/9/22.
//


#import "LBFullVideoViewController.h"
#import <LbAdSdk/ADv.h>
#import "Config.h"

@interface LBFullVideoViewController () <FullVideoDelegate>
@property (nonatomic, strong) FullVideo* fullVideo;
@end

@implementation LBFullVideoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self showAD];
}

- (void)showAD{
    _fullVideo = [ADv showFullVideo:LB_TEST_FULLVIDEO_ID viewController:self delegate:self];
}

- (void)reloadAD{
    [_fullVideo reload];
}


// MARK:-loading
-(void) didFinishLoadingADWithPlacementID:(NSString *)placementID {
    NSLog(@"LBFullVideoViewController::didFinishLoadingADWithPlacementID:%@", placementID);
}

-(void) didFailToLoadADWithPlacementID:(NSString*)placementID error:(NSError*)error {
    NSLog(@"LBFullVideoViewController::didFailToLoadADWithPlacementID:%@ error:%@", placementID, error);
}

// MARK:-fullvideo
-(void) interstitialDidShowForPlacementID:(NSString *)placementID extra:(NSDictionary *)extra {
    NSLog(@"LBFullVideoViewController::interstitialDidShowForPlacementID:%@ extra:%@", placementID, extra);
}

-(void) interstitialFailedToShowForPlacementID:(NSString*)placementID error:(NSError*)error extra:(NSDictionary *)extra {
    NSLog(@"LBFullVideoViewController::interstitialFailedToShowForPlacementID:%@ error:%@ extra:%@", placementID, error, extra);
}

-(void) interstitialDidFailToPlayVideoForPlacementID:(NSString*)placementID error:(NSError*)error extra:(NSDictionary*)extra {
    NSLog(@"LBFullVideoViewController::interstitialDidFailToPlayVideoForPlacementID:%@ error:%@ extra:%@", placementID, error, extra);
}

-(void) interstitialDidStartPlayingVideoForPlacementID:(NSString*)placementID extra:(NSDictionary *)extra {
    NSLog(@"LBFullVideoViewController::interstitialDidStartPlayingVideoForPlacementID:%@ extra:%@", placementID, extra);
}

-(void) interstitialDidEndPlayingVideoForPlacementID:(NSString*)placementID extra:(NSDictionary *)extra {
    NSLog(@"LBFullVideoViewController::interstitialDidEndPlayingVideoForPlacementID:%@ extra:%@", placementID, extra);
}

-(void) interstitialDidCloseForPlacementID:(NSString*)placementID extra:(NSDictionary *)extra {
    NSLog(@"LBFullVideoViewController::interstitialDidCloseForPlacementID:%@ extra:%@", placementID, extra);
}

-(void) interstitialDidClickForPlacementID:(NSString*)placementID extra:(NSDictionary *)extra {
    NSLog(@"LBFullVideoViewController::interstitialDidClickForPlacementID:%@ extra:%@", placementID, extra);
}
@end
